package com.danbay.cloud.common.api.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @author SJG
 *         2018/1/13.
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CodeValidateDto {

    /**
     * 验证码id
     */
    @NotBlank(message = "验证码id不能为空")
    private String id;
    /**
     * 验证码
     */
    @NotBlank(message = "验证码不能为空")
    private String code;
    /**
     * 用户名
     */
    @NotBlank(message = "用户名不能为空")
    private String userName;
}
